package com.atguigu.service;

import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT , //使用的大模型 自己指定
        chatModel = "ollamaChatModel" ,
        streamingChatModel = "ollamaStreamingChatModel"
)
public interface OllamaService {
    String chat(String msg);
    Flux<String> stream(String msg);
}
